
t1=('python')
t2=('python',)
t3=tuple()
t4=tuple([1,2,3])
print(t1,t2,t3,t4)
print(type(t1),type(t2))
demo=('p''y''t''h''o''n')
print(demo[3])
print(demo[2:6])
for i in demo:
    print(i)

s=[9.6,9.3,9.4,9.9,9.5,9.8,9.7,9.1,9.2,9.4]
max=s[0]
min=s[0]
sum=0
for i in s:
    sum=sum+i
    if(i>max):
        max=i
    if(i<min):
        min=i
res=(sum-max-min)/8
print(res)

p=[9.6,9.3,9.4,9.9,9.5,9.8,9.7,9.1,9.2,9.4]
p.sort()
sum=0
del p[0],p[-1]
for i in p :
    sum=sum+i
j=sum/8
print(format(j,'.4f'))

w=[1,2,3]
q=[4,5,6]
w.extend(q)
w.reverse()
print(w)




